﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="InterfacePropertyList.aspx.cs" Inherits="Medianamik.UI.TypeManagement.InterfacePropertyList" MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
	<asp:HyperLink ID="AddPropertyLink" CssClass="Action BtAjouter" runat="server" Text="<%$ Resources: Medianamik_TypeManagement, AddInterfaceProperty %>" />
	<a href="<%= ReturnUrl %>" class="Action BtAnnuler"><%=Resources("Medianamik_Global", "Cancel") %></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<med:BreadcrumbTrail ID="BreadcrumbTrail" runat="server" CssClass="FilAriane" 
	    CurrentPageAsLink="true" Url="interfacelist.aspx" ParamName="basetypeid" Separator="" />
	<asp:Label ID="PreventFromAddingPropertiesLabel" Text="<%$ Resources: Medianamik_TypeManagement, PreventFromAddingPropertiesLabel %>" runat="server" CssClass="TxtErreur" Visible="false" />
	<telerik:RadGrid runat="server" ID="PropertyGrid" EnableEmbeddedSkins="false" 
	    Skin="Medianamik" AllowPaging="false" AutoGenerateColumns="false" 
	    OnItemCommand="PropertyGridItemCommand" OnNeedDataSource="PropertyGridNeedDataSource" 
	    AllowMultiRowSelection="false" Width="100%">
		<MasterTableView DataKeyNames="ID">
			<Columns>
			    <telerik:GridBoundColumn DataField="Name"
			        HeaderText="<%$ Resources: Medianamik_TypeManagement, PropNameColTitle %>" />
				<telerik:GridTemplateColumn HeaderStyle-Width="1%" HeaderText="Actions">
					<HeaderStyle HorizontalAlign="Center" />
					<ItemStyle CssClass="Actions" />
					<ItemTemplate>
						<table border="0" cellpadding="0" cellspacing="0" align="center">
							<tr>
								<td><med:EditLink runat="server" LockEnabled="false" 
								    ID="EditPropertyButton" NavigateUrl='<%# "interfacepropertymanagement.aspx?propertyid=" + Eval("ID") %>' /></td>
								<td><med:ConfirmedDeleteButton ID="DeletePropertyButton" 
								    CommandArgument='<%# Eval("ID") %>' CommandName="DeleteInterfaceProperty"
								    runat="server" ConfirmText="<%$ Resources: Medianamik_TypeManagement, ConfirmDelePropertyText %>" /></td>
							</tr>
						</table>
					</ItemTemplate>
				</telerik:GridTemplateColumn>
			</Columns>
			<NoRecordsTemplate>
			    <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			</NoRecordsTemplate>
		</MasterTableView>
		<ClientSettings EnableRowHoverStyle="true" AllowRowsDragDrop="false" Selecting-AllowRowSelect="false" />
	</telerik:RadGrid>
</asp:Content>
